/* 基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

/* 头部导航通用样式 */
.header {
    background-color: #1AAD19;
    color: white;
    padding: 5px 0;
    text-align: center;
    position: relative;
}

.back-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    text-decoration: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.weui-content {
    margin-top:4px;
    padding-bottom: 20px;
}

/* 模块容器（复用卡片样式） */
.wy-Module {
    margin: 0 10px 10px;
}

/* 按钮样式（绿色风格） */
.weui-btn {
    display: block;
    width: 100%;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    outline: none;
    cursor: pointer;
    text-decoration: none;
}
.weui-btn_primary {
    background-color: #1AAD19; /* 绿色主色 */
    color: #fff;
}
.weui-btn_primary:active {
    background-color: #168f15; /* 绿色按下效果 */
}

/* 辅助链接 */
.login-links {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding: 0 5px;
}
.login-link {
    color: #1AAD19; /* 链接色与绿色主题统一 */
    font-size: 13px;
    text-decoration: none;
}

/* 轮播图 */
.swiper-banner {
    width: 98%;
    border-radius: 10px 10px 10px 10px;
    overflow: hidden;
    position: relative;
}
.swiper-banner img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.swiper-pagination {
    bottom: 8px !important;
}


/* 快捷功能图标区 */
.wy-iconlist-box {
    background-color: white;
    margin: 10px;
    border-radius: 10px;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}
.weui-flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    display: flex;
}
.weui-flex__item {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    width: 0;
}
.wy-links-iconlist {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    padding: 5px 0;
}
.wy-links-iconlist:active {
    transform: scale(0.95);
}
.wy-links-iconlist .img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-download { background-color: #f0f7ff; }
.img-service { background-color: #fff0f7; }
.img-about { background-color: #fff7f0; }
.wy-links-iconlist .img img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.wy-links-iconlist p {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* 通知区域 */
.wy-ind-news {
    background-color: white;
    margin: 0 10px 10px;
    border-radius: 10px;
    padding: 10px 15px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    height: 40px;
}
.news-icon-laba {
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF9F43'%3E%3Cpath d='M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm6 6c0 2.21-1.79 4-4 4h-1.73l2.88 2.88C16.14 16.74 17 15.4 17 14c0-2.76-2.24-5-5-5s-5 2.24-5 5c0 1.4.86 2.74 2.14 3.41L9.73 14H8c-2.21 0-4-1.79-4-4V6c0-1.1.9-2 2-2h12c1.1 0 2 .9 2 2v2z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    margin-right: 8px;
    flex-shrink: 0;
}
.swiper-news {
    flex: 1;
    height: 20px;
    overflow: hidden;
}
.swiper-news a {
    color: #333;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.newsmore {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    color: #888;
    flex-shrink: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-icon-more {
    font-size: 18px;
}


.wy-Module {
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}

.wy-Module-tit {
    margin-bottom: 10px;
}

.wy-Module-tit span {
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* 表格行布局 */
.table-row {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 12px;
}

/* 列宽分配 */
.header-name.table-cell,
.stock-info.table-cell {
    flex: 4;
    padding-left: 10px;
}

.header-price.table-cell,
.stock-price-wrap.table-cell {
    flex: 3;
}

.header-change.table-cell,
.stock-change-wrap.table-cell {
    flex: 2;
    justify-content: flex-end; /* 涨跌幅列容器靠右 */
    padding-right: 10px;
}

/* 表头样式 */
.stock-header {
    font-weight: bold;
    color: #666;
    background-color: #fafafa;
    border-radius: 4px 4px 0 0;
}

/* 列表项样式 */
.stock-list {
    list-style: none;
}

.stock-link {
    display: flex;
    width: 100%;
    text-decoration: none;
    color: #333;
}

.stock-link:hover {
    background-color: #f9f9f9;
}

/* 名称/交易量样式 */
.stock-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-weight: 400;
    font-size: 16px;
}

.stock-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.stock-volume {
    font-size: 12px;
    color: #999;
}

/* 价格样式 */
.stock-price {
    font-size: 14px;
}

/* 涨跌幅核心样式调整 */
.stock-change {
    /* 固定宽高 64px×28px */
    width: 64px;
    height: 28px;
    /* 文字白色 */
    color: #fff;
    /* 居中显示 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 4px; /* 轻微圆角更美观 */
}

/* 上涨红色背景 */
.stock-change.up {
    background-color: #f53f3f;
}

/* 下跌绿色背景 */
.stock-change.down {
    background-color: #00b42a;
}
/* 底部导航 */
.wy-foot-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55px;
    background-color: #fff;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.05);
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    z-index: 999;
}
.weui-tabbar__item {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    text-decoration: none;
    font-size: 11px;
}
.weui-tabbar__item.weui-bar__item--on {
    color: #1AAD19;
}
.weui-tabbar__icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
}
.weui-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #E64340;
    color: white;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 10px;
    text-align: center;
}

.weui-input, .weui-select {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #333;
}
.weui-input::placeholder, .weui-select::placeholder {
    color: #ccc;
}
/* 币种选择下拉框样式 */
.weui-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 30px;
}

/* 信息展示框（与输入框风格统一） */
.info-display {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    color: #333;
    font-size: 15px;
    word-break: break-all; /* 长地址自动换行 */
    line-height: 1.4;
}

/* 底部导航 - 新增样式 */
.wy-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55px;
    background-color: #fff;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.05);
    display: flex;
    z-index: 10;
}
.footer-nav {
    flex: 1; /* 四个导航平均分配宽度 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #888;
    font-size: 11px;
    padding-top: 6px;
    transition: all 0.2s;
}
.footer-nav.active {
    color: #1AAD19; /* 当前页导航高亮 */
}
.footer-nav i {
    font-size: 20px;
    margin-bottom: 4px;
}
.footer-nav:active {
    background-color: #f9f9f9;
}
/* 退出登录按钮 */
.logout-btn {
    display: block;
    width: calc(100% - 20px);
    margin: 10px auto 0;
    padding: 12px 0;
    background-color: white;
    border: 1px solid #E64340;
    color: #E64340;
    font-size: 15px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.logout-btn:active {
    background-color: #fff5f5;
    transform: scale(0.98);
}
/* 表单样式（与其他页面统一） */
.weui-form {
    margin-bottom: 25px;
}
.weui-form-group {
    margin-bottom: 15px;
}
.weui-input-box {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 0 15px;
    height: 45px;
}
.weui-input-box::after {
    content: " ";
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    height: 1px;
    border-bottom: 1px solid #eee;
    transform-origin: 0 100%;
    transform: scaleY(0.5);
}
.input-label {
    width: 70px;
    color: #333;
    font-size: 15px;
    flex-shrink: 0;
}
.input-icon {
    color: #888;
    margin-right: 10px;
    font-size: 16px;
    flex-shrink: 0;
}
.weui-input {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #333;
}
.weui-input::placeholder {
    color: #ccc;
}


/* 底部版权信息 */
.copyright {
    text-align: center;
    margin-top: 40px;
    color: #ccc;
    font-size: 12px;
}

.load-more {
    text-align: center;
    padding: 15px;
    color: #999;
    font-size: 14px;
    margin-bottom: 60px; /* 为底部导航留空间 */
    display: none;
}

/* 已有账号链接 */
.login-link-wrap {
    text-align: center;
    margin-top: 20px;
}
.login-link {
    color: #1AAD19;
    font-size: 13px;
    text-decoration: none;
}

/* 客服链接样式 */
.customer-service {
    text-align: center;
    margin: 15px 0 30px;
}
.service-link {
    color: #1AAD19;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.service-link i {
    margin-right: 5px;
}
.service-link:hover {
    text-decoration: underline;
}
.center-div {
    text-align: center;
    padding: 15px;
    color: #999;
}